<template>
  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="个人中心" name="first">
      个人中心
      
    </el-tab-pane>
    <el-tab-pane label="收货地址" name="second">
      收货地址
      
    </el-tab-pane>
    <el-tab-pane label="全部订单" name="third">
      全部订单
      
    </el-tab-pane>
    <el-tab-pane label="修改密码" name="fourth">
      修改密码
      
    </el-tab-pane>
  </el-tabs>
</template>
<script>
  export default {
    data() {
      return {
        activeName: 'second'
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  };
</script>